def guess(number):
    i = 0
    origial_number = number
    while number != 1:
        if number % 2 == 0:
            number = number / 2
        else:
            number = number * 3 + 1
            i += 1
    print(f'{origial_number}经过{i}次变换回到1')


num = int(input('请输入一个大于1的整数:'))
guess(num)
